﻿using Telerik.Windows.Controls;

namespace SmartPlantApp.Common;

public class CustomLocalizationManager : LocalizationManager
{
    public override string GetStringOverride(string key)
    {
        return key switch
        {
            //Grid
            "GridViewAlwaysVisibleNewRow" => "单击此处添加一行新数据",
            "GridViewColumnsSelectionButtonTooltip" => "选择列",
            "GridViewSearchPanelTopText" => "全文搜索",
            "GridViewFilterOr" => "区分大小写",
            "GridViewFilterIsNull" => "空对象",
            "GridViewFilterMatchCase" => "或",
            "GridViewFilterIsNotNull" => "非空对象",
            "GridViewFilterIsEmpty" => "为空",
            "GridViewFilterIsNotEmpty" => "为非空",
            "GridViewFilterDistinctValueNull" => "[空对象]",
            "GridViewFilterDistinctValueStringEmpty" => "[空字符]",
            "GridViewGroupPanelText" => "若要分组，请将列标题拖动到此区域。",
            "GridViewGroupPanelTopText" => "分组标题",
            "GridViewGroupPanelTopTextGrouped" => "分组依据：",
            "GridViewClearFilter" => "清除过滤器",
            "GridViewFilterShowRowsWithValueThat" => "显示具有条件的值：",
            "GridViewFilterSelectAll" => "全部显示",
            "GridViewFilterDoesNotContain" => "不包含",
            "GridViewFilterContains" => "包含",
            "GridViewFilterEndsWith" => "以...结尾",
            "GridViewFilterIsContainedIn" => "包含在",
            "GridViewFilterIsNotContainedIn" => "不包含在",
            "GridViewFilterIsEqualTo" => "等于",
            "GridViewFilterIsGreaterThan" => "大于",
            "GridViewFilterIsGreaterThanOrEqualTo" => "大于等于",
            "GridViewFilterIsLessThan" => "少于",
            "GridViewFilterIsLessThanOrEqualTo" => "少于等于",
            "GridViewFilterIsNotEqualTo" => "不等于",
            "GridViewFilterStartsWith" => "开始于",
            "GridViewFilterAnd" => "并且",
            "GridViewFilter" => "过滤",

            //Ribbon
            "RibbonViewGalleryButtonMore" => "更多",
            "RibbonViewGalleryButtonUpDown" => "行",
            "RibbonViewGalleryOfPart" => "属于",
            "RibbonViewQATCustomize" => "自定义快速访问工具栏",
            "RibbonViewQATMinimize" => "最小化功能区",
            "RibbonViewQATShowAbove" => "显示在功能区上方",
            "RibbonViewQATShowBelow" => "显示在功能区下方",
            "RibbonViewQATRestore" => "恢复功能区",
            "RibbonViewWindowTitleDivider" => "-",
            "RibbonWindowClose" => "关闭",
            "RibbonWindowMaximize" => "最大化",
            "RibbonWindowMinimize" => "最小化",
            "RibbonWindowRestoreDown" => "向下还原",
            "RibbonViewExpandRibbon" => "展开功能区",
            "RibbonViewHelp" => "帮助",
            "RibbonViewLayoutModeButtonContent" => "简化功能区",

            //RadDocking
            "Hide" => "隐藏",
            "Auto_hide" => "自动隐藏",
            "Floating" => "浮动",
            "Dockable" => "停靠模式",
            "Tabbed_document" => "选项卡模式",
            "Docking_ActivePanes" => "活动窗格",
            "Docking_ActiveDocuments" => "活动文档",
            "Docking_PreviewHeader" => "预览",

            //DataPager
            "RadDataPagerOf" => "共",
            "RadDataPagerPage" => "当前",

            _ => base.GetStringOverride(key),
        };
    }
}
